package com.brspace.qualitycontrol.service.impl;

import com.brspace.qualitycontrol.entity.WritUser;
import com.brspace.qualitycontrol.mapper.WritUserMapper;
import com.brspace.qualitycontrol.service.WritUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Hugo
 * @since 2021-04-08
 */
@Service
public class WritUserServiceImpl extends ServiceImpl<WritUserMapper, WritUser> implements WritUserService {

    @Resource
    private WritUserMapper writUserMapper;

    //修改当前查询收文在当前登录用户下为已阅
    @Override
    public void updateIsRead(String id, String userId) {
        writUserMapper.updateIsRead(id,userId);
    }
}
